<!-- start: Content -->
<div class="main">
    <!--面包屑 START-->
    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><i class="fa fa-laptop"></i>首页</h3>
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i><a href="/Admin">首页</a></li>
                <li><i class="fa fa-laptop"></i>首页</li>
            </ol>
        </div>
    </div>
    <!--面包屑 END-->

    <!--右侧内容主体 START-->
    <div class="row">
        <div class="col-md-8">
            <div class="panel panel-default">
                <div class="panel-body">
                    <div class="text-center">
                        <img class="img-profile" src="{$Think.session.admin_user.face}" style="width: 120px;height: 120px;border-radius: 5px;">
                    </div>
                    <h3 class="text-center">
                      <strong>{$Think.session.admin_user.nickname}</strong>
                    </h3>
                    <hr>

                    <div class="row">

                        <div class="col-lg-3 col-sm-6 col-xs-6 col-xxs-12">
                            <div class="smallstat blue-bg">
                                <a href="/admin"><i class="fa fa-laptop white-bg" style="cursor: pointer;"></i></a>
                            </div><!--/.smallstat-->
                        </div><!--/.col-->

                        <div class="col-lg-3 col-sm-6 col-xs-6 col-xxs-12">
                            <div class="smallstat magenta-bg">
                                <a href="/admin/Web/web_info"><i class="fa fa-cogs white-bg" style="cursor: pointer;"></i></a>
                            </div><!--/.smallstat-->
                        </div><!--/.col-->

                    </div>

                    <table id="user" class="table table-bordered table-striped" style="clear: both">
                        <tbody>
                        <?php $uData = M('Users')->where(array('uid'=>$_SESSION['admin_user']['uid'],'user_type'=>1))->find();?>
                        <tr>
                            <td width="35%">当前用户名</td>
                            <td width="65%">{$Think.session.admin_user.uname}</td>
                        </tr>
                        <tr>
                            <td>本次登录时间</td>
                            <td><?php echo date('Y-m-d H:i:s',$uData['last_login_time'])?></td>
                        </tr>
                        <tr>
                            <td>本次登录IP</td>
                            <td><?php echo $uData['last_login_ip'];?></td>
                        </tr>
                        <tr>
                            <td>共有注册用户</td>
                            <td><?php echo M('Users')->count();?></td>
                        </tr>
                        <tr>
                            <td>所属角色</td>
                            <td>{$groupName}</td>
                        </tr>
                        </tbody>
                    </table>
                    <br/>
                    <hr/>
                    <h4><strong>服务器信息</strong></h4>

                    <ul class="profile-details">
                        <li>
                            <div><i class="fa fa-windows"></i> 操作系统 </div>
                            {:php_uname('s')}
                        </li>
                        <li>
                            <div><i class="fa fa-building-o"></i> PHP 版本</div>
                            {$Think.const.PHP_VERSION}
                        </li>
                        <li>
                            <div><i class="fa fa-building-o"></i> 服务运行环境 </div>
                            {:php_uname('s')} + PHP {$Think.const.PHP_VERSION} + MySql {$mysql_version}
                        </li>
                        <li>
                            <div><i class="fa fa-building-o"></i> MySql 版本</div>
                            {$mysql_version}
                        </li>
						<li>
                            <div><i class="fa fa-map-marker"></i> 基于开发 </div>
                            ThinkPHP<br>
                            {$Think.const.THINK_VERSION}<br>
                        </li>
                    </ul>

                </div>



            </div>
        </div>

        <!--<div class="col-md-4">
            <div class="panel panel-default calendar">
                <div class="calendar-small"></div>
                <div class="list"></div>
            </div>
        </div>--><!--/col-->



    </div>
    <!--右侧内容主体 END-->
</div>
<!-- end: Content -->
